#@edit()
#define content()
<!-- form start -->
<form class="form-horizontal" action="/withdraw/doAudit" method="post">
    <div class="box-body">
		<div class="row">
			<div class="col-sm-4">
		        <div class="form-group">
		            <label class="col-sm-4 control-label">用户ID</label>
		            <div class="col-sm-8">
		 				<p class="form-control-static">#(itemData.user_id)</p>
		            </div>
		        </div>
	        </div>
			<div class="col-sm-4">
		        <div class="form-group">
		            <label class="col-sm-4 control-label">手机号码</label>
		            <div class="col-sm-8">
		 				<p class="form-control-static">#(itemData.mobile)</p>
		            </div>
		        </div>
	        </div>
			<div class="col-sm-4">
		        <div class="form-group">
		            <label class="col-sm-4 control-label">用户昵称</label>
		            <div class="col-sm-8">
		 				<p class="form-control-static">#(itemData.nickname)</p>
		            </div>
		        </div>
	        </div>
		</div>

		<div class="row">
			<div class="col-sm-4">
		        <div class="form-group">
		            <label class="col-sm-4 control-label">开户银行</label>
		            <div class="col-sm-8">
		 				<p class="form-control-static">#(itemData.bank_name)</p>
		            </div>
		        </div>
	        </div>
			<div class="col-sm-4">
		        <div class="form-group">
		            <label class="col-sm-4 control-label">持卡人</label>
		            <div class="col-sm-8">
		 				<p class="form-control-static">#(itemData.holder)</p>
		            </div>
		        </div>
	        </div>
			<div class="col-sm-4">
		        <div class="form-group">
		            <label class="col-sm-4 control-label">帐号</label>
		            <div class="col-sm-8">
		 				<p class="form-control-static">#(itemData.account)</p>
		            </div>
		        </div>
	        </div>
		</div>

		<div class="row">
			<div class="col-sm-4">
		        <div class="form-group">
		            <label class="col-sm-4 control-label">提现金额</label>
		            <div class="col-sm-8">
		 				<p class="form-control-static text-danger text-bold">#(itemData.amount)</p>
		            </div>
		        </div>
	        </div>
			<div class="col-sm-4">
		        <div class="form-group">
		            <label class="col-sm-4 control-label">账户余额</label>
		            <div class="col-sm-8">
		 				<p class="form-control-static">#(itemData.blance)</p>
		            </div>
		        </div>
	        </div>
			<div class="col-sm-4">
		        <div class="form-group">
		            <label class="col-sm-4 control-label">冻结金额</label>
		            <div class="col-sm-8">
		 				<p class="form-control-static text-muted">#(itemData.frozen_blance)</p>
		            </div>
		        </div>
	        </div>
		</div>
		
		<div class="row">
			<div class="col-sm-6">
		        <div class="form-group">
		            <label class="col-sm-3 control-label">提现备注</label>
		            <div class="col-sm-9">
		                <textarea name="remark" class="form-control input-sm" readonly="readonly">#(itemData.remark)</textarea>
		            </div>
		        </div>			
			</div>
			<div class="col-sm-6">
		        <div class="form-group">
		            <label class="col-sm-3 control-label">审核备注</label>
		            <div class="col-sm-9">
		                <textarea name="rejected_remark" class="form-control input-sm" placeholder="审核备注"></textarea>
		            </div>
		        </div>			
			</div>
		</div>
    </div>
    <input type="hidden" name="id" value="#(itemData.id)" />
    <input type="hidden" name="status" />    
    <!-- /.box-body -->
    <div class="box-footer">
        <button type="button" class="btn btn-default xsui-btn-close-dialog pull-right">关闭窗口</button>
        <button type="button" class="btn btn-success">审核通过</button>
        <button type="button" class="btn btn-warning">审核驳回</button>
        <button type="submit" style="display: none"></button>
    </div>
    <!-- /.box-footer -->
</form>
<div id="errors" style="display:none;">
<div>#(idMsg)</div>
<div>#(statusMsg)</div>
<div>#(remarkMsg)</div>
</div>
#end
#define script_after()
<script>
xsApp.showError();
$('.btn-success').click(function(){
	if(!confirm('您确定要审核通过吗？')){
		return false;
		}
	var code=prompt("请输入口令[yes]:");
	if(!code || code!="yes"){
		return false;
	}
	$('[name="status"]').val(1);
    $(':submit').trigger('click');
    })
    $('.btn-warning').click(function(){
    	if(!confirm('您确定要审核驳回吗？')){
    		return false;
    		}
        $('[name="status"]').val(0);
        $(':submit').trigger('click');
        })
</script>
#end